from arquivos import carregarArquivos
from matplotlib.pyplot import plot,show,axis 
from time import time

a=time()
z=carregarArquivos('w','artigo2',10,20,2)
plot(z[0][:,0],z[0][:,1],'y',z[1][:,0],z[1][:,1],'b',z[2][:,0],z[2][:,1],'r')
p=1.02
#lim=max([ abs(min(min(z[0][:,0]) , min(z[1][:,0]) , min(z[2][:,0])))*p,
#  abs(max(max(z[0][:,0]) , max(z[1][:,0]) , max(z[2][:,0])))*p,
#  abs(min(min(z[0][:,1]) , min(z[1][:,1]) , min(z[2][:,1])))*p,
#  abs(max(max(z[0][:,0]) , max(z[1][:,0]) , max(z[2][:,0])))*p ])

#axis([-lim,lim,-lim,lim])
#axis([ min(min(z[0][:,0]) , min(z[1][:,0]) , min(z[2][:,0]) )*p,
#       max(max(z[0][:,0]) , max(z[1][:,0]) , max(z[2][:,0]) )*p,
#       min(min(z[0][:,1]) , min(z[1][:,1]) , min(z[2][:,1]) )*p,
#       max(max(z[0][:,0]) , max(z[1][:,0]) , max(z[2][:,0]) )*p ])
b=time()
print(b-a)
show()